package com.fhz.mvvmtest.base;

import androidx.databinding.DataBindingUtil;
import androidx.databinding.ViewDataBinding;

/**
 * 时间:11/15/21
 *
 * @author msfeng
 * 简述: TODO
 */
public abstract class BaseMVVMActivity<VM extends BaseViewModel,DB extends ViewDataBinding> extends BaseActivity {

    protected VM viewModel;
    protected DB bingding;

    @Override
    protected void initEnv() {
        bingding = DataBindingUtil.setContentView(this, layoutId());
        viewModel = createViewModel();
    }

    protected abstract VM createViewModel();


}
